package cn.felord.security.autoconfigure;

/**
 * The interface Token generator.
 *
 * @param <T> the type parameter
 * @author felord.cn
 * @since 2021 /8/6 18:42
 */
@FunctionalInterface
public interface TokenGenerator<T> {

    /**
     * Token response t.
     *
     * @param user the user
     * @return the t
     */
    T tokenResponse(SecureUser user);
}
